import request from '@/utils/request'

// 查询司机角色关联列表
export function listGuanlian(query) {
  return request({
    url: '/passenger/guanlian/list',
    method: 'get',
    params: query
  })
}

// 查询司机角色关联详细
export function getGuanlian(driverRoleId) {
  return request({
    url: '/passenger/guanlian/' + driverRoleId,
    method: 'get'
  })
}

// 新增司机角色关联
export function addGuanlian(data) {
  return request({
    url: '/passenger/guanlian',
    method: 'post',
    data: data
  })
}

// 修改司机角色关联
export function updateGuanlian(data) {
  return request({
    url: '/passenger/guanlian',
    method: 'put',
    data: data
  })
}

// 删除司机角色关联
export function delGuanlian(driverRoleId) {
  return request({
    url: '/passenger/guanlian/' + driverRoleId,
    method: 'delete'
  })
}
